<@paginate currentPage=sectionDetailPage.pageNumber totalPage=sectionDetailPage.totalPage actionUrl="${contextPath}/sectiondetail/${sectionPage.getList().get(0).getLong('section.id')}-" />
<#macro paginate currentPage totalPage actionUrl urlParas="">
<nav class="pagination" role="navigation">
    <#if currentPage!=1>
    <a class="newer-posts" href="${actionUrl}#{currentPage - 1}${urlParas!}"><i class="fa fa-angle-left"></i></a>
    </#if>
    <span class="page-number">第 #{currentPage} 页 ⁄ 共 #{totalPage} 页</span>
    <#if currentPage < totalPage>
    <a class="older-posts" href="${actionUrl}#{currentPage + 1}${urlParas!}"><i class="fa fa-angle-right"></i></a>
    </#if>
</nav>
</#macro>